#include <iostream>
#include <string>
#include <vector>
using namespace std;

string mul_str(string a, string b) {
    int n = a.size(), m = b.size();
    vector<int> res(m + n, 0);

    for (int i = n - 1; i >= 0; i--) {
        for (int j = m - 1; j >= 0; j--) {
            int mul = (a[i] - '0') * (b[j] - '0');
            int sum = mul + res[i + j + 1];
            res[i + j + 1] = sum % 10;
            res[i + j] += sum / 10;
        }
    }

    string ans = "";
    for (int i = 0; i < res.size(); i++) {
        if (ans.empty() && res[i] == 0) continue;
        ans += to_string(res[i]);
    }
    return ans;
}

int main() {
    string a, b;
    cin >> a >> b;
    cout << mul_str(a, b) << endl;
    return 0;
}